#!/opt/local/bin/python2.7

import networkx as nx

size=10000
p=0.01

g=nx.erdos_renyi_graph(size,p)

varP = 0.01
varPLowEnd = 1.e-6
repeatMax = 20

while varP >= varPLowEnd:
    print 'Computing for p=',varP
    repeatInd=1
    while repeatInd <= repeatMax:
        g=nx.erdos_renyi_graph(size,varP)
        if nx.is_connected(g):
            repeatInd = repeatInd+1
            nodeInd=1
            while nodeInd <= size:
                
        

    varP=varP/5

